Repository navigation
fix(server): archiving a parent keeps children with a dev server or running command - #988
Merged
Merged
Conversation
…unning command Archiving a parent archives its settled children, which stops their runtime and closes their terminals. The live-work check behind that split ignored background work the agent doesn't wait on (a dev server) and commands still running in the child's terminal, so archiving the parent killed them. childHasLiveWork takes a `running` option that also counts both; the archive cascade asks for it, so such children are separated and keep running, as the auto-archive sweeper already treats them. The background and terminal checks are shared helpers (hasBackgroundWork, hasLiveCommandRun) that the move's workWaits uses too, so the two can't drift. Other callers keep their meaning.
The sweeper stopped every attached child of an archived parent, including ones the archive separated because they still had a dev server or a running command. It now reads the children back from the events the archive wrote, as the manual archive does, through one shared helper.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Archiving a parent archived its children that still had a dev server running in the background or a command still running in their terminal. Archiving stops a thread's runtime and closes its terminals, so that work was killed.
Archiving now counts every background task and every live terminal command when it decides which children are still at work. Those children are separated and keep running, as busy children already were. The automatic archive now stops only the children the archive actually took along, read back from the events it wrote, the same way the manual archive does. The move's wait rule uses the same two shared checks, with no change in behavior.